package com.ynyyrj.school.service;

import com.ynyyrj.school.mapper.SchMapper;
import com.ynyyrj.school.pojo.MajorList;
import com.ynyyrj.school.pojo.SchoolList;
import com.ynyyrj.school.pojo.StudentList;
import com.ynyyrj.school.pojo.school;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

@Service
public class SchListIml implements SchListService{

    @Autowired
    SchMapper schMapper;

    @Override
    public Collection<SchoolList> GetSchoolList() {
        return schMapper.GetSchoolList();
    }

    @Override
    public int addSchool(school school) {
        return schMapper.addSchool(school);
    }

    @Override
    public List<String> GetName() {
        return schMapper.GetName();
    }

    @Override
    public int delSchool(String name) {
        return schMapper.delSchool(name);
    }

    @Override
    public int updaSchool(school school) {
        return schMapper.updaSchool(school);
    }

    @Override
    public int selectId(String name) {
        return schMapper.selectId(name);
    }

    @Override
    public List<Integer> GetAid() {
        return schMapper.GetAid();
    }

    @Override
    public Collection<MajorList> GetMajorList(String name) {
        return schMapper.GetMajorList(name);
    }

    @Override
    public Collection<StudentList> GetStudentList(String name1, String name2) {
        return schMapper.GetStudentList(name1,name2);
    }

    @Override
    public String selectName(int aid) {
        return schMapper.selectName(aid);
    }
}
